<!DOCTYPE html>
<html>
<head>
<title>test dev tools</title>
</head>
<body>
hello world
<iframe id = "devtools" src = "test.html"></iframe>
<script type="text/javascript">
var gui = require('nw.gui');
var win = gui.Window.get();
win.showDevTools('devtools');

win.on('loaded',function(){
  setTimeout(function() {
    win.reload();   // location.reload();
  }, 1000);
});
</script>
</body>
</html>
